home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_321 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  445 b   |  20 lines

  1. on(press){
  2.    if(_root.micon._currentframe == 59)
  3.    {
  4.       _root.indicount = 100;
  5.       _root.indialogue = "I\'ve created a monster!";
  6.       _root.micon.gotoAndStop(1);
  7.       _root.sfx.gotoAndStop(3);
  8.       i = 1;
  9.       while(i < 40)
  10.       {
  11.          if(_root.inven["box" + i]._currentframe == 60)
  12.          {
  13.             _root.inven["box" + i].gotoAndStop(61);
  14.          }
  15.          i++;
  16.       }
  17.       gotoAndStop(61);
  18.    }
  19. }
  20.